<div ng-controller="PintuanCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li>{{'拼团'| translate}}</li>
        <li>{{'List'|translate}}
            <a href="#/pintuan/add" id="addNew" class="sui-btn btn-primary">+{{'add_new' | translate}}</a>
        </li>
        <span class="sui-form sui-form pull-right"> 
          <input type="text"  placeholder="{{'商品编号'|translate}}"  ng-model="keyword">

          <button class="sui-btn btn-primary" type="submit" ng-click="getList()">{{'search'|translate}}</button>
        </span>
    </ul>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'id'|translate}}</th>
                <th>{{'title'|translate}}</th>
                <th>{{'商品编号'|translate}}</th>
                <th>{{'参加活动的商品'|translate}}</th>
                <th>{{'原价'|translate}}</th>
                <th>{{'拼团价'|translate}}</th>
                <th>{{'剩余时间'|translate}}</th>
                <th>{{'operation'|translate}}</th>
                <!-- <th>{{'二维码'|translate}}</th> -->
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="list in pintuan_list">
                <td>{{list.pintuan_id}}</td>
                <td>{{list.name}}</td>
                <td>{{list.item_id}}</td>
                <td>
                    <item-name item-id="list.item_id" sku-id="list.sku_id"></item-name>
                </td>
                <td>{{list.original_price}}</td>
                <td>{{list.pin_price}}</td>
                <td>{{list.diff_time?list.diff_time:'已结束'}}</td>
                <td>
                    <a href="#/pintuan/add?pintuan_id={{list.pintuan_id}}" class="sui-btn btn-primary"> {{'edit'|translate}} </a>
                    <!-- <a ng-click="kanjiaPause(list.bargain_rule_id)" class="sui-btn btn-danger" ng-if="list.diff_time">{{'暂停'|translate}}</a> -->
                    <!--  <a href="#/kanjia/add?bargain_rule_id={{list.bargain_rule_id}}" class="sui-btn btn-danger" ng-if="!list.diff_time"> {{'重启'|translate}} </a> -->
                    <a href="#/pintuan/info?pintuan_id={{list.pintuan_id}}" class="sui-btn btn-success"> {{'实例数据'|translate}} </a>
                </td>
                <!-- <td > -->
                <!-- <wx-qrcode  stype="stype" id="list.bargain_rule_id"></wx-qrcode> -->
                <!-- </td> -->
            </tr>
        </tbody>
    </table>
    <!-- 分页start -->
    <pager page-no="1" page-size="pageSize" total="total_count" get-data="getList(pageNo)"></pager>
    <!-- 分页end -->
</div>